<?php

namespace app\api\controller;
use  app\common\controller\DBase;
use app\common\controller\PCBase;
use app\api\logic\LinXingOrderLogic;
class LinXingOrder extends DBase
{

    /**
     * @desc   导入数据处理
     * @author luckyXiong
     * @date   2025-01-24
     */
    public function importInfo(){
        $file   = $this->request->file('file');
        $tel    = '13871468530';
        $data['file'] = $file;
        $data['tel']  = $tel;
        (new LinXingOrderLogic())->importInfo($data);
        return  $this->jsonMessage(200,true,'文件异步上传成功,等待一会可以查看结果!',null);
    }


    /**
     * @desc   清洗数据处理
     * @author luckyXiong
     * @date   2025-03-24
     */
    public function change_sku(){
        $params     = $this->request->post();
        return     (new LinXingOrderLogic())->change_sku($params);
    }


    /**
     * @desc   清洗数据处理
     * @author luckyXiong
     * @date   2025-03-24
     */
    public function change_sku_size(){
        $params     = $this->request->get();
        (new LinXingOrderLogic())->change_sku_size();
        return  $this->jsonMessage(200,true,'操作成功',null);
    }


    /**
     * @desc   清洗数据处理
     * @author luckyXiong
     * @date   2025-03-24
     */
    public function change_sku_size_consumer(){
        $params     = $this->request->post();
        (new LinXingOrderLogic())->change_sku_size_consumer($params);
        return  $this->jsonMessage(200,true,'操作成功',null);
    }


    /**
     * @desc   库存导入数据查询是否导入
     * @author luckyXiong
     * @date   2025-06-24
     */
    public function check_product_inventory(){
        $params     = $this->request->get();
        (new LinXingOrderLogic())->check_product_inventory();
        return  $this->jsonMessage(200,true,'操作成功',null);
    }


    /**
     * @desc   广告名称信息查询
     * @author luckyXiong
     * @date   2025-08-11
     */
    public function get_adv_name_consumer(){
        $params  = $this->request->post();
        (new LinXingOrderLogic())->get_adv_name($params);
        return  $this->jsonMessage(200,true,'操作成功',null);
    }




}